pids=`ps x | grep runfcgi | grep python | grep argus | awk '{printf "%s ", $1}'`
if [ "$pids" != "" ]; then
  kill -9 $pids
fi

current_dir="/var/www/argus/"
python $current_dir/manage.py runfcgi method=threaded host=127.0.0.1 port=8080 #minspare=5 maxspare=5
